package org.dong.service.Impl;


import org.dong.Tool.Data;
import org.dong.mapper.DoctorMapper;
import org.dong.pojo.AdminUser;
import org.dong.service.DoctorService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class DoctorServiceImpl implements DoctorService {


    @Resource
    DoctorMapper doctorMapper;

    @Override
    public AdminUser DoctorLogin(String account, String password) {


        return doctorMapper.getAdminUser(account, Data.getMD5Hash(password));

    }
}
